package cn.edu.lingnan.mongodb;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.time.LocalDateTime;

@Data
@Document(collection = "search_history") // 指定 MongoDB 集合名称
public class SearchHistory {
    @Id
    private String id; // MongoDB 的 ObjectId
    private Integer userId;
    private String questionName;
    private LocalDateTime searchTime;
}
